Alert Button Constants
NEW WITH THE APPEARANCE MANAGER
You can use these constants in thedefaultButton
andcancelButton
fields in the standard alert structure to specify which buttons act as the default and Cancel buttons in the standard alert structure. These constants are also returned in theitemHit
parameter ofStandardAlert
.
enum { kAlertStdAlertOKButton = 1, kAlertStdAlertCancelButton = 2, kAlertStdAlertOtherButton = 3, kAlertStdAlertHelpButton = 4 };Constant descriptions
kAlertStdAlertOKButton
- The OK button. The default text for this button is "OK".
kAlertStdAlertCancelButton
- The Cancel button (optional). The default text for this button is "Cancel".
kAlertStdAlertOtherButton
- A third button (optional). The default text for this button is "Don't Save".
kAlertStdAlertHelpButton
- The Help button (optional).